package cn.modificator.relationtree;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;
import android.os.Handler;

/**
 * Created by Modificator
 * time: 2017/9/17.下午2:54
 * des:create file and achieve model
 */

public class ApplicationLoader extends Application{

    @SuppressLint("StaticFieldLeak")
    public static volatile Context applicationContext;
    public static volatile Handler applicationHandler;

    @Override
    public void onCreate() {
        super.onCreate();
        applicationContext = getApplicationContext();

        applicationHandler = new Handler(applicationContext.getMainLooper());
    }
}
